package org.gdufe.pojos.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("t_book")
public class Book implements Serializable {
    //图书的编号，图书唯一标识
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //图书的名称
    private String title;
    //图书的剩余数量
    private Integer number;
    //图书图片地址
    private String img;
    //图书的评分 0-10
    private Double point;
}
